﻿#ifndef CSHOWTREEWIDGET_H
#define CSHOWTREEWIDGET_H

#include <QTreeWidget>
#include <QMimeData>
#include <QEvent>
#include <QDrag>
#include <QDragEnterEvent>
#include <QDragLeaveEvent>
#include <QDragMoveEvent>
#include <QMouseEvent>
#include <QLabel>

class CShowTreeWidget : public QTreeWidget
{
protected:
    void mousePressEvent(QMouseEvent* event);
    void dragEnterEvent(QDragEnterEvent *event);
    void dragMoveEvent(QDragMoveEvent *event);
    void dropEvent(QDropEvent *event);

public:
    CShowTreeWidget(QWidget *parent = 0);

private:
    QTreeWidgetItem* m_pSelectItem;
    QLabel* m_plabel;
};

#endif // CSHOWTREEWIDGET_H
